import * as actionTypes from "./actionTypes";
import { getshopDetails } from '../../../../apis/shop'
export const setshopDetails = (data) => {
    console.log('val',data)
    return {
        type: actionTypes.setshopDetails,
        data: data,
    }
}
//页面初始化
export const _getshopDetails = (val) => {
    return (dispatch) => {
        console.log(val,2222)
        getshopDetails(val).then(res => {
             dispatch(setshopDetails(res.data))
        })
    }
}
